package controller;

import model.Delivery;
import model.DeliveryCollection;
import model.Sale;

/**
 *
 * @author Mads Nielsen
 *
 */
public class DeliveryController {

    public void createDelivery(Sale sale, String name, String address,
            int zipCode, String city, double price) {

        Delivery delivery = new Delivery(sale);
        delivery.setName(name);
        delivery.setAddress(address);
        delivery.setZipCode(zipCode);
        delivery.setCity(city);
        delivery.setPrice(price);

        DeliveryCollection.getInstance().addDelivery(delivery);
    }
}
